package com.yyx.up.web.service.impl;

import com.yyx.up.web.bean.WatchLog;
import com.yyx.up.web.dao.WatchLogDao;
import com.yyx.up.web.service.WatchLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Description: 观影日志的服务对象
 * @Author: yyx
 * @Create: 2023/5/8 23:25
 * @Version: 8
 */
@Service
@Transactional
public class WatchLogServiceImpl implements WatchLogService {
    @Autowired
    private WatchLogDao watchLogDao;

    @Override
    public List<WatchLog> queryusersAgeDatas(String tel, String year) {
        return this.watchLogDao.queryusersAgeDatas(tel,year);
    }

    @Override
    public List<WatchLog> queryAgeDatas(String ageRange, String year) {
        return this.watchLogDao.queryAgeDatas(ageRange,year);
    }

    @Override
    public List<WatchLog> queryGenderDatas(String gender, String year) {
        return this.watchLogDao.queryGenderDatas(gender,year);
    }

    @Override
    public List<WatchLog> queryYearDatas(String tel, String year) {
        return this.watchLogDao.queryYearDatas(tel,year);
    }

    @Override
    public List<WatchLog> queryFilmDatas(String film_type, String year) {
        return this.watchLogDao.queryFilmDatas(film_type,year);
    }

    @Override
    public List<WatchLog> queryPreferenceDatas(String tel, String year) {
        return this.watchLogDao.queryPreferenceDatas(tel,year);
    }

    @Override
    public List<WatchLog> filmSum(String tel, String year) {
        return this.watchLogDao.filmSum(tel,year);
    }

    @Override
    public List<WatchLog> userSum(String tel, String year) {
        return this.watchLogDao.userSum(tel,year);
    }
}
